package com.izhangqian.signproject.webrequest.api

import com.izhangqian.signproject.beans.ApkConfig
import io.reactivex.Observable
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.Streaming
import retrofit2.http.Url

interface IGetControl {

    @GET("sweethouse/totransport/raw/master/helperupgrade/apkconfig.json")
    fun getNewAppConfig() : Observable<ApkConfig>

    @Streaming
    @GET
    @Headers("Accept-Encoding:identity")
    fun getNewApk(@Url url : String) : Call<ResponseBody>
}